#!/usr/bin/env node
'use strict';

const ERROR = require('./config/defaultErrorInfo').defaultErrorInfo;

switch ( process.argv[2] ) {
      case 'build': 
            if ( typeof process.argv[3] == "string" ) {
                  let BulidFile  = require('./function/buildWxApp').BuildWxApp;
                  let newApp = new BulidFile(process.argv[3]);
            }
      break;
      case 'compile':
            if ( typeof process.argv[3] == "string" ) {
                  let Compile  = require('./function/compileWxml').Compile;
                  let newCompile = new Compile(process.argv[3]);
            }
      break;
      default :
            console.log(ERROR[2]);
      break;
}